﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DoiMatKhau.aspx.cs" Inherits="DoiMatKhau" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <asp:ChangePassword ID="ChangePassword1" runat="server">
    <ChangePasswordTemplate>
        <table border="0" cellpadding="1" cellspacing="0" 
            style="border-collapse:collapse;">
            <tr>
                <td>
                    <table border="0" cellpadding="0">
                        <tr>
                            <td align="right" style="font-size: large; color: #00CCFF">
                                <asp:Label ID="CurrentPasswordLabel" runat="server" 
                                    AssociatedControlID="CurrentPassword" Font-Size="Large" 
                                    ForeColor="#00CCFF">Mật khẩu hiện tại:</asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="CurrentPassword" runat="server" TextMode="Password" 
                                    BackColor="#FCF8FD" BorderColor="#00CCFF" BorderStyle="Dotted" 
                                    Font-Size="Medium" ForeColor="#00CCFF"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" 
                                    ControlToValidate="CurrentPassword" ErrorMessage="Password is required." 
                                    ToolTip="Password is required." ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="font-size: large; color: #00CCFF">
                                <asp:Label ID="NewPasswordLabel" runat="server" 
                                    AssociatedControlID="NewPassword">Mật khẩu mới:</asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="NewPassword" runat="server" TextMode="Password" 
                                    BackColor="#FCF8FD" BorderColor="#00CCFF" BorderStyle="Dotted" 
                                    Font-Size="Medium" ForeColor="#00CCFF"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" 
                                    ControlToValidate="NewPassword" ErrorMessage="New Password is required." 
                                    ToolTip="New Password is required." ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="color: #00CCFF; font-size: large">
                                <asp:Label ID="ConfirmNewPasswordLabel" runat="server" 
                                    AssociatedControlID="ConfirmNewPassword">Xác nhận mật khẩu mới:</asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="ConfirmNewPassword" runat="server" TextMode="Password" 
                                    BackColor="#FCF8FD" BorderColor="#00CCFF" BorderStyle="Dotted" 
                                    Font-Size="Medium" ForeColor="#00CCFF"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" 
                                    ControlToValidate="ConfirmNewPassword" 
                                    ErrorMessage="Confirm New Password is required." 
                                    ToolTip="Confirm New Password is required." ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2">
                                <asp:CompareValidator ID="NewPasswordCompare" runat="server" 
                                    ControlToCompare="NewPassword" ControlToValidate="ConfirmNewPassword" 
                                    Display="Dynamic" 
                                    ErrorMessage="The Confirm New Password must match the New Password entry." 
                                    ValidationGroup="ChangePassword1"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2" style="color:Red;">
                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Button ID="ChangePasswordPushButton" runat="server" 
                                    CommandName="ChangePassword" Text="Đổi mật khẩu" 
                                    ValidationGroup="ChangePassword1" Font-Bold="True" Font-Size="Large" 
                                    ForeColor="#00CCFF" />
                            </td>
                            <td align="left">
                                <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" 
                                    CommandName="Cancel" Text="Hủy" Font-Bold="True" Font-Size="Large" 
                                    ForeColor="#00CCFF" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </ChangePasswordTemplate>
</asp:ChangePassword>
</asp:Content>

